package net.sxnic.jhitem.itemclassify.action;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * @Description:  [一句话描述该类的功能]
 * @Author [姓名] [联系方式]
 * @CreateDate:
 * @UpdateDate:   
 * @Version 1.0
 */
 
public class Save extends ItemClassifyAction {
	private static final long serialVersionUID = 1L;

	private static Logger logger = LoggerFactory.getLogger(Save.class);

	public void prepare() throws Exception {
		
		itemClassify = itemClassifyManager.get(id);
	}

	public String execute() throws Exception {
		
		itemClassifyManager.save(itemClassify);
		
		addActionMessage("保存成功");
		
		// 返回指定JSP
		return SUCCESS;
	}

}
